load("@rules_cc//cc:defs.bzl", "cc_library")

cc_library(
    name = "xtrans",
    hdrs = [
        "Xtrans.c",
        "Xtranslcl.c",
        "Xtranssock.c",
        "Xtransutil.c",
        "transport.c",
    ],
    features = ["parse_headers"],
    include_prefix = "X11/Xtrans",
    textual_hdrs = [
        "Xtransint.h",
        "Xtrans.h",
    ],
    visibility = ["//visibility:public"],
)

alias(
    name = "libxtrans",
    actual = ":xtrans",
    visibility = ["//visibility:public"],
)
